﻿@using VirtualPress.Infrastructure.Entities.Enum;
@using VirtualPress.Infrastructure.Entities.Entity;
@{
    ViewBag.Title = "最新期刊申请";
    Layout = "/Areas/WorkSpace/Views/Shared/_WorkSpace.cshtml";
}

@section head{
    <link rel="stylesheet" href="/content/css/uniform.css" />
    <link rel="stylesheet" href="/content/css/select2.css" />
}
<div id="content-header">
    <h1>
        期刊申请</h1>
</div>
<div id="breadcrumb">
    <a href="/WorkSpace/press/index" class="tip-bottom"><i class="icon-home"></i>起始页</a>
    <a href="javascript:" class="current">期刊申请</a>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <h5>
                        期刊申请</h5>
                </div>
                <div class="widget-content nopadding">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th>
                                    期刊名称
                                </th>
                                <th style="width: 10%">
                                    行业分类
                                </th>
                                <th style="width: 30%">
                                    期刊简介
                                </th>
                                <th style="width: 10%">
                                    期刊类型
                                </th>
                                <th style="width: 15%">
                                    申请单位
                                </th>
                                <th style="width: 10%">
                                    申请时间
                                </th>
                                <th style="width: 10%">
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                         @{ItemListBox<Periodical> data = ViewBag.Journals;
                           List<Periodical> list = data.Data;}
                            @foreach (var item in list)
                            {
                            <tr>
                                    <td>
                                        @item.Name
                                    </td>
                                    <td style="text-align: center">
                                        @item.IndType.Mapping()
                                    </td>
                                    <td>
                                        @item.Introduction
                                    </td>
                                     <td style="text-align: center">
                                     @item.Type.Mapping()
                                     </td>
                                    <td style="text-align: center">
                                        @item.ZBDW
                                    </td>
                                <td style="text-align: center">
                                    @item.RegTime
                                </td>
                                <td style="text-align: center">
                                    <a href="/WorkSpace/Press/EnableJournal/@item.Id" class="btn btn-success btn-mini">启用</a> 
                                    <a href="/WorkSpace/Press/DeleteJournal/@item.Id" class="btn btn-danger btn-mini">删除</a>
                                </td>
                            </tr>
                            }
                        </tbody>
                    </table>
                </div>
                @Html.Raw(data.PageItemSegment)
            </div>
        </div>
    </div>
</div>
@section tail{
    <script type="text/javascript" src="/scripts/jquery.uniform.js"></script>
    <script type="text/javascript" src="/scripts/select2.min.js"></script>
    <script type="text/javascript" src="/scripts/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="/scripts/unicorn.tables.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#likjournal').addClass('open active');
        });
    </script>
}
